<div class="widget-content">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'transaction-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('class'=>'form-horizontal', 'novalidate'=>'novalidate'),
)); ?>

	<?php if($form->errorSummary($model)):?>
			<div class="alert alert-block">
				<a class="close" data-dismiss="alert" href="#">&times;</a>
				<h4 class="alert-heading"><?php echo $form->errorSummary($model); ?></h4>
			</div>
	<?php endif;?>
	<fieldset>
	<div class="control-group">
		<?php echo $form->labelEx($model,'mid',array('class'=>'control-label','for'=>'mid')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'mid',array('size'=>20,'maxlength'=>20,'class'=>'input-large')); ?>
		<?php echo $form->error($model,'mid'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'fid',array('class'=>'control-label','for'=>'fid')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'fid',array('size'=>20,'maxlength'=>20,'class'=>'input-large')); ?>
		<?php echo $form->error($model,'fid'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'startdate',array('class'=>'control-label','for'=>'startdate')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'startdate'); ?>
		<?php echo $form->error($model,'startdate'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'enddate',array('class'=>'control-label','for'=>'enddate')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'enddate'); ?>
		<?php echo $form->error($model,'enddate'); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'active',array('class'=>'control-label','for'=>'active')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'active'); ?>
		<?php echo $form->error($model,'active'); ?>
		</div>
	</div>

	<div class="form-actions">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array('class'=>'btn btn-primary btn-large')); ?>
		<?php echo CHtml::link('Cancel',array('/transaction/admin'),array('class'=>'btn btn-large')); ?>
	</div>
	</fieldset>
<?php $this->endWidget(); ?>
</div><!-- form -->